<% content_for :head do %>
	
	<%= stylesheet_link_tag "datePicker" %>
	<%= javascript_include_tag 'date' %>
	<%= javascript_include_tag 'jquery.datePicker.js' %>
	
	<script type="text/javascript">
		jQuery(document).ready(function(){
			Date.firstDayOfWeek = 0;
			Date.format = 'mm/dd/yyyy';
			jQuery('.date-pick').datePicker({clickInput:true});
		});
	</script>

<% end %>

<div id="content"> 
	<div id="top_buttons"></div><!--/top_buttons-->
	<div id="mainreports">
		<% form_for :report_request, @report_request , :url => {:action => :create} do |f| %>
		<%= f.error_messages %>
			<div class="item_report">
				<p><%= f.label :title %><br />  <%= f.text_field :title, :size =>"80" %></p>
				<p><%= f.label :description %><br />  <%= f.text_area :description, :size => "60x3" %></p>
				<p><%= f.label :report_period , _("Report period") %><br /> 
					<%= select_tag "period", options_for_select({_("Please select Period") => -1, _("January-June") =>"first_period", _("July-December") => "second_period"}, -1)%>
					&nbsp;&nbsp; 
					<%= f.label :year, _("Year") %>
					<%= select_tag "year", options_for_select({_("Please select Year") => -1, _("2007") => "2007", _("2008") => "2008", _("2009") => "2009", _("2010") => "2010", _("2011") => "2011" , _("2012") => "2012", _("2013") => "2013"}, -1)%>   
				</p>
         	</div>
			
			<div class="clear"></div>
         	<div class="item_report">
         		<p><%= f.label :due_date, _("Due date") %><br />
					<% f.date_select:due_date, :discard_day => true, :order => [:month, :year] %>
					<%= f.text_field :due_date, :class => "date-pick" %>
				</p>
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
			<div class="item_report">
				<%= f.label _("Send Message") %>
				<span class="note"><%= f.label _"(Leave blank and no message will be sent)" %></span><br/>
				<%= f.text_area :message, :size => "60x3", :value => _("Please fill in the report this month! Just click on the link included in this email. We present the results in Kumming. Thank you very much!Snow, Coordinator, MBDS Office") %>
				<p><span>
					<%= image_submit_tag "b_save_send.gif" %>
					<%= link_to image_tag("b_cancel_back.gif"), :action => 'index'%>
				</span></p>
			</div>
     	<% end %> 
	</div>
</div><!--/content-->


